﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Core;

namespace Web.Controllers
{
    public partial class datastructController : JsonController
    {
        [OnlyGod]
        public ActionResult addOrEditDSNotice(int? nid, string title, string color, string content)
        {
            return Json(msg.addOrEditDSNotice(nid, title, color, content));
        }

        [OnlyGod]
        public ActionResult deleteDSNotice(int nid)
        {
            return Json(msg.deleteDSNotice(nid));
        }

        public ActionResult getDSNotice(int nid)
        {
            return Json(msg.getDSNotice(nid));
        }

        public ActionResult getDSNoticeList(int start,int limit)
        {
            return Json(msg.getDSNoticeList(start, limit));
        }

    }
}
